package com.buptcoder.wifimap;

import com.buptcoder.wifimap.Utils.MapLog;

import android.app.Application;
import android.content.Intent;

public class WifiMapApplicaton extends Application {

    public void onCreate() {
        super.onCreate();
        Intent intent = new Intent(this, WifiScanService.class);
        startService(intent);
    }

    @Override
    public void onTerminate() {
        MapLog.d("WifiMapApplicaton", "onTerminate");
        Intent intent = new Intent(this, WifiScanService.class);
        stopService(intent);
        super.onTerminate();
    }
}
